<div class="panel panel-default mt20">
    <div class="panel-body">
        <div class="col-sm-12">
            <div class="row ">
                <div class="col-sm-2">
                    <input type="text" class="form-control" ng-model="searchform.nickname" ng-keyup="myKeyup($event)" placeholder="昵称">
                </div>
                <div class="col-sm-2">
                    <input type="text" class="form-control" ng-model="searchform.mobile" ng-keyup="myKeyup($event)" placeholder="手机号">
                </div>
                <div class="col-sm-2">
			        <ui-select ng-model="searchform.level" theme="bootstrap" ng-keyup="myKeyup($event)">
                          <ui-select-match placeholder="会员类型">
                            {{$select.selected.title}}
                          </ui-select-match>
                          <ui-select-choices repeat="item.code as item in levelarr | filter: $select.search">
                            <span ng-bind-html="item.title | highlight: $select.search"></span>
                          </ui-select-choices>
                	</ui-select>
			    </div>
                <div class="col-sm-2">
                    <ui-select ng-model="searchform.fx_level" theme="bootstrap" ng-keyup="myKeyup($event)">
                          <ui-select-match placeholder="分销级别">
                            {{$select.selected.title}}
                          </ui-select-match>
                          <ui-select-choices repeat="item.code as item in fx_levelarr | filter: $select.search">
                            <span ng-bind-html="item.title | highlight: $select.search"></span>
                          </ui-select-choices>
                    </ui-select>
                </div>
                <div class="col-sm-2 pull-right">
                    <button class="btn btn-block btn-info" ng-click="load()">立即搜索</button>
                </div>
            </div>
        </div>
    </div>
                <!--<label>景区名称</label>&nbsp;&nbsp;
                <input type="text" class="form-control" ng-model="searchform.name"> &nbsp;&nbsp;&nbsp;&nbsp;
                <label>景区编号</label>&nbsp;&nbsp;
                <input type="text" class="form-control" ng-model="searchform.code"> &nbsp;&nbsp;&nbsp;&nbsp;
                <button type="button" class="btn btn-default search" ng-click="load()">立即搜索</button>
            </div>
            <div class="col-sm-2 text-right">
                <button type="button" class="btn btn-info new" ng-click="create()">创建景区</button>
            </div>-->
        </div>
    </div>
</div>
<!-- searchArea -->

<div class="panel panel-default mt20">
    <div class="panel-body">
        <div class="table-responsive">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    
                    <th class="col-xs-1 text-center">头像</th>
                    <th class="col-xs-5 text-center">会员信息</th>
                    <!-- <th class="col-md-1 text-center">分销等级</th> -->
                    <th class="col-xs-4 text-center">会员等级</th>
                    <!-- <th class="col-md-2 text-center">优惠券</th> -->
                    <th class="col-md-2 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="">
                        <img ng-src="{{obj.headimgurl}}" ng-model="obj.headimgurl" class="img-responsive" style="border-radius:100px;">
                    </td>
                    <td class="">
                        昵称：{{obj.nickname}} <br>
                        电话：{{obj.mobile}} <br>
                        级别：{{obj.fx_levelname}}
                        <!-- 地址：{{obj.country}} / {{obj.province}} / {{obj.city}} -->
                    </td>
                    <!-- <td class="text-center">{{obj.fx_levelname}}</td> -->
                    <td class="text-center">
						<!-- <select class="form-control" ng-model="obj.level" 
			              ng-options="subtable.code as subtable.title for subtable in levelarr"
			            >
			            </select> -->
                        <ui-select ng-model="obj.level" theme="bootstrap" ng-keyup="myKeyup($event)">
                              <ui-select-match placeholder="会员等级">
                                {{$select.selected.title}}
                              </ui-select-match>
                              <ui-select-choices repeat="item.code as item in levelarr | filter: $select.search">
                                <span ng-bind-html="item.title | highlight: $select.search"></span>
                              </ui-select-choices>
                        </ui-select>

                        <a ng-click="auth(obj)" class="btn btn-success btn-xs btn-block mt5">授权</a>
                    </td>
                    <!-- <td class="text-center"> -->
                        <!-- <select class="form-control" ng-model="obj.level" 
                          ng-options="subtable.code as subtable.title for subtable in levelarr"
                        >
                        </select> -->

                    <!--     <ui-select ng-model="obj.coupon" theme="bootstrap" ng-keyup="myKeyup($event)">
                              <ui-select-match placeholder="优惠券">
                                {{$select.selected.product_name}}
                              </ui-select-match>
                              <ui-select-choices repeat="item.CODE as item in couarr | filter: $select.search">
                                <span ng-bind-html="item.product_name | highlight: $select.search"></span>
                              </ui-select-choices>
                        </ui-select>

                        <a ng-click="coupon(obj)" class="btn btn-success btn-xs btn-block mt5">发放</a>
                    </td> -->
                    <td class="text-center">
                        <a ng-click="relation(obj)" class="btn btn-success btn-xs" >查看关系</a>
                        <a ng-click="statistics(obj)" class="btn btn-info btn-xs" >销售统计</a>

                        <a ng-click="getOrder(obj)" class="btn btn-info btn-xs" >查看订单</a>

                    </td>
                </tr>
            </tbody>
        </table>
        </div>

        <div class="text-right">

                <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>

        </div>


    </div>
</div>